export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {name: '登录', path: '/user/login', component: './User/Login'},
      {name: '注册', path: '/user/register', component: './User/Register'},
    ],
  },
  {path: '/welcome', name: '欢迎', icon: 'smile', component: './Welcome'},
  {
    path:'user',
    name:'用户中心',
    icon: 'user',
    routes: [
      {name: '用户',  path: 'user/list', component: './TableList'},
      {name: '角色',  path: 'user/role', component: './RoleManage'},
    ]
  },
  {name: '数据源', icon: 'database', path: '/datasource/list', component: './DataSourceTableList'},
  {
    name: '数据源详情',
    icon: 'project',
    path: '/datasource/detail',
    component: './DatasourceDetailTableList',
    menuRender: false,
    hideInMenu: true
  },
  {name: '项目', icon: 'project', path: '/project/list', component: './ProjectTableList'},
  {
    path:'/Interface',
    name: 'api管理',
    icon: 'crown',
    routes: [
      {path: '/Interface',redirect: '/interface/manage'},
      {path: '/Interface/manage',name:'api管理',component: './ApiManage'},
      {path: '/Interface/sub-page', name: 'api审核', component: './Admin'},
    ]
  },
  {name: 'api市场', icon: 'AliwangwangOutlined', path: '/market', component: './ApiMarket'},
  {name: 'api市场', hideInMenu:true,menuRender:false, path: '/invoke', component: './ApiInvoke'},
  {path: '/', redirect: '/welcome'},
  {path: '*', layout: false, component: './404'},
];
